import Home from "@/views/Home.vue";
import login from "@/views/login.vue";
import register from "@/views/register.vue";
import Weight from "@/views/Weight.vue";
import WeightRank from "@/views/WeightRank.vue";
import Book from "@/views/Book.vue";
import Guide from "@/views/Guide.vue";
const routes = [
	{
		path: "/login",
		name: "login",
		component: login,
		meta: {},
	},
	{
		path: "/register",
		name: "register",
		component: register,
		meta: {},
	},
	{
		path: "/home",
		name: "Home",
		component: Home,
	},
	{
		path: "/weight",
		name: "weight",
		component: Weight,
		meta: {
			isKeepAlive: false,
		},
	},
	{
		path: "/book",
		name: "book",
		component: Book,
		meta: {
			isKeepAlive: false,
		},
	},
	{
		path: "/guide",
		name: "guide",
		component: Guide,
		meta: {
			isKeepAlive: false,
		},
	},
	{
		path: "/guideInfo/:type",
		name: "guideInfo",
		component: () => import("@/views/GuideInfo.vue"),
		props: true
	},
	{
		path: "/bookInfo/:type",
		name: "bookInfo",
		component: () => import("@/views/BookInfo.vue"),
		props: true
	},
	{
		path: "/weightRank",
		name: "weightRank",
		component: WeightRank,
		meta: {
			isKeepAlive: false,
		},
	},
	{
		path: "/goodsDetail",
		name: "goodsDetail",
		component: () => import("@/views/common/goodsDetail.vue"),
		meta: {
			isRouterKeepAlive: true,
		},
	},
	{
		path: "/teacher",
		name: "teacher",
		component: () => import("@/views/teacher.vue"),
	},
	{
		path: "/chat/:id",
		name: "chat",
		component: () => import("@/views/Chat.vue"),
	},
];

export { routes };
